package top.infopub.mgr.bpa.dao;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import top.infopub.mgr.bpa.domain.BpaProjectDomain;
import top.infopub.mgr.bpa.domain.ContractLedgerDomain;
import top.infopub.mgr.bpa.domain.ContractNegDomain;
import top.infopub.mgr.bpa.dto.ContractNegDto;
import top.infopub.mgr.bpa.jsonVo.ContractNegJsonVo;
import top.infopub.mgr.bpa.vo.ContractManageVo;
import top.infopub.mgr.bpa.vo.ContractPublicVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.bpa.BpaContractNeg;
import top.infopub.model.bpa.ContractNegProcess;
import top.infopub.model.cap.LookInfo;

import java.util.List;

public interface ContractNegDao {
    Page<ContractNegDomain> selectByDomainWhere(ContractPublicVo contractPublicVo);

    /*对外合同台账*/
    Page<ContractLedgerDomain> selectByLedger(ContractManageVo contractManageVo);

    ContractNegDto queryDetailById(String id);

    void updateById(BpaContractNeg contractNeg);

    void insertById(BpaContractNeg contractNeg);

    void insertProcess(ContractNegProcess contractNegProcess);

    List<ContractNegProcess> selectProcess(@Param("id") String id);

    List<BpaProjectDomain> queryByProCode();

    RspVo queryDrop();

    BpaContractNeg selectBySguid(String id);
}
